package sagroup.dracots.metrics;
import java.io.IOException;
public interface MetricsContext {    
	  /**
	   * Default period in seconds at which data is sent to the metrics system.
	   */
	  public static final int DEFAULT_PERIOD = 5;
	    

	  public abstract String getContextName();
	    

	  public abstract void startMonitoring()
	    throws IOException;


	  public abstract void stopMonitoring();
	    

	  public abstract boolean isMonitoring();
	    

	  public abstract void close();
	    

	   public abstract MetricsRecord createRecord(String recordName);
	    

	  public abstract void registerUpdater(Updater updater);


	  public abstract void unregisterUpdater(Updater updater);
	    

}
